.class Lcom/glympse/android/glympse/ViewEula$MyGlympseView;
.super Lcom/glympse/android/glympse/Glympse$GlympseView;
.source "ViewEula.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewEula;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MyGlympseView"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/ViewEula;


# direct methods
.method constructor <init>(Lcom/glympse/android/glympse/ViewEula;)V
    .locals 0
    .parameter

    .prologue
    .line 34
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewEula$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewEula;

    invoke-direct {p0}, Lcom/glympse/android/glympse/Glympse$GlympseView;-><init>()V

    return-void
.end method


# virtual methods
.method public CreateView()V
    .locals 13

    .prologue
    const/4 v12, 0x5

    const/4 v11, -0x2

    const/high16 v10, 0x3f80

    const/4 v9, 0x0

    const/4 v8, -0x1

    .line 39
    iget-object v5, p0, Lcom/glympse/android/glympse/ViewEula$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewEula;

    invoke-virtual {v5}, Lcom/glympse/android/glympse/ViewEula;->getContext()Landroid/content/Context;

    move-result-object v2

    .line 42
    .local v2, oContext:Landroid/content/Context;
    iget-object v5, p0, Lcom/glympse/android/glympse/ViewEula$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewEula;

    const/4 v6, 0x1

    invoke-virtual {v5, v6}, Lcom/glympse/android/glympse/ViewEula;->setOrientation(I)V

    .line 43
    iget-object v5, p0, Lcom/glympse/android/glympse/ViewEula$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewEula;

    const/16 v6, 0xa

    const/16 v7, 0x29

    invoke-static {v9, v6, v7}, Landroid/graphics/Color;->rgb(III)I

    move-result v6

    invoke-virtual {v5, v6}, Lcom/glympse/android/glympse/ViewEula;->setBackgroundColor(I)V

    .line 46
    new-instance v4, Landroid/webkit/WebView;

    invoke-direct {v4, v2}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V

    .line 47
    .local v4, oWebView:Landroid/webkit/WebView;
    const/16 v5, 0xa

    const/16 v6, 0x29

    invoke-static {v9, v5, v6}, Landroid/graphics/Color;->rgb(III)I

    move-result v5

    invoke-virtual {v4, v5}, Landroid/webkit/WebView;->setBackgroundColor(I)V

    .line 48
    const-string v5, "file:///android_asset/eula.html"

    invoke-virtual {v4, v5}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 49
    invoke-virtual {v4, v9}, Landroid/webkit/WebView;->setScrollBarStyle(I)V

    .line 50
    iget-object v5, p0, Lcom/glympse/android/glympse/ViewEula$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewEula;

    new-instance v6, Landroid/widget/LinearLayout$LayoutParams;

    .line 52
    invoke-direct {v6, v8, v8, v10}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    .line 50
    invoke-virtual {v5, v4, v6}, Lcom/glympse/android/glympse/ViewEula;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 55
    new-instance v3, Landroid/widget/LinearLayout;

    invoke-direct {v3, v2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 56
    .local v3, oLinearButtons:Landroid/widget/LinearLayout;
    invoke-virtual {v3, v9}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 57
    const/16 v5, 0xa

    invoke-virtual {v3, v12, v5, v12, v12}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    .line 58
    iget-object v5, p0, Lcom/glympse/android/glympse/ViewEula$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewEula;

    new-instance v6, Landroid/widget/LinearLayout$LayoutParams;

    .line 60
    invoke-direct {v6, v8, v11}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 58
    invoke-virtual {v5, v3, v6}, Lcom/glympse/android/glympse/ViewEula;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 63
    new-instance v0, Landroid/widget/Button;

    invoke-direct {v0, v2}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    .line 64
    .local v0, oButtonAccept:Landroid/widget/Button;
    const-string v5, "Accept"

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 65
    new-instance v5, Lcom/glympse/android/glympse/ViewEula$OnClickAccept;

    invoke-direct {v5}, Lcom/glympse/android/glympse/ViewEula$OnClickAccept;-><init>()V

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 66
    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    .line 68
    invoke-direct {v5, v8, v11, v10}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    .line 66
    invoke-virtual {v3, v0, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 71
    new-instance v1, Landroid/widget/Button;

    invoke-direct {v1, v2}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    .line 72
    .local v1, oButtonDecline:Landroid/widget/Button;
    const-string v5, "Decline"

    invoke-virtual {v1, v5}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 73
    new-instance v5, Lcom/glympse/android/glympse/ViewEula$OnClickDecline;

    invoke-direct {v5}, Lcom/glympse/android/glympse/ViewEula$OnClickDecline;-><init>()V

    invoke-virtual {v1, v5}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 74
    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    .line 76
    invoke-direct {v5, v8, v11, v10}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    .line 74
    invoke-virtual {v3, v1, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 77
    return-void
.end method

.method public DestroyView()V
    .locals 1

    .prologue
    .line 82
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewEula$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewEula;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewEula;->removeAllViews()V

    .line 83
    return-void
.end method
